Problem Statment
You are given a singly linked list and pointer which is pointing to the node
which is required to be deleted. Any information about head pointer or any other
node is not given. You need to write a function to delete that node from
linked list. Your function will take only one argument: pointer to the node
which is to be deleted.
Example 1:
Given a Linked List: [ 5 -> 2 -> 3 -> 8 ]
Input Format : 2 (a pointer to 2)
Output Format : [ 5 -> 3 -> 8 ]